<%@page import="java.util.Random"%>
<%@page import="com.mongodb.BasicDBObject"%>
<%@page import="com.mongodb.DBCursor"%>
<%@page import="y1s.data.Data"%>
<%@page import="com.mongodb.DBCollection"%>
<%
try{
DBCollection coll = Data.data("domain");
Random generator = new Random();
int r = generator.nextInt(1000000);
DBCursor ldomain = coll.find(new BasicDBObject("random",new BasicDBObject("$lt",r))).sort(new BasicDBObject("random",-1)).limit(10);
%>

<h2>Site random</h2>
<ul class="left_list">
<%
while(ldomain.hasNext())
{
	String name = ldomain.next().get("name").toString();
%>
	<li><a href="/d/<%=name%>" title="<%=name %>"><%=name %></a></li>
<%
}	
} catch (Exception e)
{}
%>
</ul>